import { get, post, put, remove } from "./index";

export function oneById(id) {
  return get("locker/" + id);
}

export function page(query) {
  return get("locker/page", query);
}

export function excel(query) {
  return post("locker/export", query);
}

export function create(data) {
  return post("device", data);
}

export function update(data) {
  return put("device", data);
}

export function deleteById(id) {
  return remove("locker/" + id);
}

export default {
  oneById,
  page,
  excel,
  create,
  update,
  deleteById,
};
